package com.baosight.risk.service.system.entity;

import javax.persistence.Column;
import javax.persistence.Table;

import com.baosight.risk.base.entity.BaseEntity;

import lombok.Data;

/**
 * Table: sys_role
 */
@Data
@Table(name = "sys_role")
public class SysRole extends BaseEntity {

    /**
     * 角色名称
     * <p>
     * Table:     sys_role
     * Column:    role_name
     * Nullable:  false
     */
    @Column(name = "role_name")
    private String roleName;

    /**
     * 角色权限字符串
     * <p>
     * Table:     sys_role
     * Column:    role_key
     * Nullable:  false
     */
    @Column(name = "role_key")
    private String roleKey;

    /**
     * 显示顺序
     * <p>
     * Table:     sys_role
     * Column:    role_sort
     * Nullable:  false
     */
    @Column(name = "role_sort")
    private String roleSort;

    /**
     * 数据范围（1：全部数据权限 2：自定数据权限）
     * <p>
     * Table:     sys_role
     * Column:    data_scope
     * Nullable:  true
     */
    @Column(name = "data_scope")
    private String dataScope;

    /**
     * 角色状态（0正常 1停用）
     * <p>
     * Table:     sys_role
     * Column:    Status
     * Nullable:  false
     */
    private String status;

    /**
     * 删除标志（0代表存在 2代表删除）
     * <p>
     * Table:     sys_role
     * Column:    del_flag
     * Nullable:  true
     */
    @Column(name = "del_flag")
    private String delFlag;
    
    @Column(name = "UNIQUE_FLAG")
    private String uniqueFlag;
    
    @Column(name = "HOME_PAGE")
    private String homePage;

    @Column(name = "ROLE_TYPE_CODE")
    private String roleTypeCode;
    
    @Column(name = "ROLE_TYPE_NAME")
    private String roleTypeName;

    /**
     * 备注
     * <p>
     * Table:     sys_role
     * Column:    remark
     * Nullable:  true
     */
    @Column(name = "REMARK")
    private String remark;

    private static final long serialVersionUID = 1L;
}